<?php
/**
 * @author Artur Bier <izatop@gmail.com>
 * @package Db.Query.Condition 
 *
 * @copyright TinyWEB CMS
 * @link http://tinywebcms.ru
 * @link http://cms.vingrad.ru
 * @version SVN: $Id$ 
 */

class DbConditionFunction extends DbCondition
{
    protected $allowed = array(
        'NOW',
        'YEAR'
    );
    
    protected $function = '';
    
    public function __construct($function)
    {
        $this->function = $function;
    }
    
    public function __toString()
    {
        return $this->function;
    }
}

?>